package com.example.AIstudy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.AIstudy.DTO.RecordDTO;
import com.example.AIstudy.domain.RecordDetail;
import com.example.AIstudy.exception.AIstudyException;

import java.util.List;
import java.util.Map;

public interface RecordDetailService extends IService<RecordDetail> {

    //插入一条做题的记录
    void insertRecordDetail(RecordDTO recordDTO) throws AIstudyException;

    //根据条件查询做题的记录，封装成DTO返回，一般都是根据套题的id来搜素
    public List<RecordDTO> findRecord(Map<String,Object> conditon);

    //根据条件查询做题的记录，封装成DTO返回，一般都是根据套题的id来搜素
    public void updateRecord(RecordDTO recordDTO)throws AIstudyException;

    //在controller中封装好了，然后直接插入
    public void insertRecordDetail2(RecordDetail record) throws AIstudyException;

}
